import request from '@/utils/request'

export function addStaff(data) {
  return request({
    url: '/admin/add-admin',
    method: 'post',
    data: data,
  })
}

export function getStaff(data) {
  return request({
    url: '/admin/admins',
    method: 'post',
    data: data,
  })
}
export function delStaff(data) {
  return request({
    url: '/admin/del-admin',
    method: 'post',
    data: data,
  })
}

export function getRole(data) {
  return request({
    url: '/admin/role-list',
    method: 'post',
    data: data,
  })
}

